﻿@model DCH.Models.Register

@{
    ViewBag.Title = "Edit";
}
<style>

    .floatleft {
        display:inline-block;
    }

</style>
<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Register</legend>

        @Html.HiddenFor(model => model.ID)


        @if (string.IsNullOrEmpty(Model.ClubName))
        { 
          <div class="editor-label">
            @Html.LabelFor(model => model.PlayerName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerName)
            @Html.ValidationMessageFor(model => model.PlayerName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlayerSkill)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlayerSkill)
            @Html.ValidationMessageFor(model => model.PlayerSkill)
        </div>
        
        }
        
        else{
        <div class="editor-label">
            @Html.LabelFor(model => model.ClubName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ClubName)
            @Html.ValidationMessageFor(model => model.ClubName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CaptainName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CaptainName)
            @Html.ValidationMessageFor(model => model.CaptainName)
        </div>

        }

        

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Phone)
            @Html.ValidationMessageFor(model => model.Phone)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City)
            @Html.ValidationMessageFor(model => model.City)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TransactionNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TransactionNumber)
            @Html.ValidationMessageFor(model => model.TransactionNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Payment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Payment)
            @Html.ValidationMessageFor(model => model.Payment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PaymentType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PaymentType)
            @Html.ValidationMessageFor(model => model.PaymentType)
        </div>

         @if (!string.IsNullOrEmpty(Model.ClubName))
        {
        
             <div >
                 <div class="floatleft">
             <div class="editor-label " >
            @Html.LabelFor(model => model.Player1Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player1Name)
            @Html.ValidationMessageFor(model => model.Player1Name)
        </div></div>
<div class="floatleft">
        <div class="editor-label"  >
            @Html.LabelFor(model => model.Player1Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player1Phone)
            @Html.ValidationMessageFor(model => model.Player1Phone)
        </div></div>
<div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player1City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player1City)
            @Html.ValidationMessageFor(model => model.Player1City)
        </div></div>
</div>
             
             
             
           <div class="floatleft">   
        <div class="editor-label">
            @Html.LabelFor(model => model.Player2Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player2Name)
            @Html.ValidationMessageFor(model => model.Player2Name)
        </div> </div>
 <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player2Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player2Phone)
            @Html.ValidationMessageFor(model => model.Player2Phone)
        </div> </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player2City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player2City)
            @Html.ValidationMessageFor(model => model.Player2City)
        </div> </div>
             <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player3Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player3Name)
            @Html.ValidationMessageFor(model => model.Player3Name)
        </div>
             </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player3Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player3Phone)
            @Html.ValidationMessageFor(model => model.Player3Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player3City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player3City)
            @Html.ValidationMessageFor(model => model.Player3City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player4Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player4Name)
            @Html.ValidationMessageFor(model => model.Player4Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player4Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player4Phone)
            @Html.ValidationMessageFor(model => model.Player4Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player4City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player4City)
            @Html.ValidationMessageFor(model => model.Player4City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player5Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player5Name)
            @Html.ValidationMessageFor(model => model.Player5Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player5Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player5Phone)
            @Html.ValidationMessageFor(model => model.Player5Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player5City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player5City)
            @Html.ValidationMessageFor(model => model.Player5City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player6Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player6Name)
            @Html.ValidationMessageFor(model => model.Player6Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player6Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player6Phone)
            @Html.ValidationMessageFor(model => model.Player6Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player6City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player6City)
            @Html.ValidationMessageFor(model => model.Player6City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player7Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player7Name)
            @Html.ValidationMessageFor(model => model.Player7Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player7Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player7Phone)
            @Html.ValidationMessageFor(model => model.Player7Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player7City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player7City)
            @Html.ValidationMessageFor(model => model.Player7City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player8Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player8Name)
            @Html.ValidationMessageFor(model => model.Player8Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player8Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player8Phone)
            @Html.ValidationMessageFor(model => model.Player8Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player8City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player8City)
            @Html.ValidationMessageFor(model => model.Player8City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player9Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player9Name)
            @Html.ValidationMessageFor(model => model.Player9Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player9Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player9Phone)
            @Html.ValidationMessageFor(model => model.Player9Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player9City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player9City)
            @Html.ValidationMessageFor(model => model.Player9City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player10Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player10Name)
            @Html.ValidationMessageFor(model => model.Player10Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player10Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player10Phone)
            @Html.ValidationMessageFor(model => model.Player10Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player10City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player10City)
            @Html.ValidationMessageFor(model => model.Player10City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player11Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player11Name)
            @Html.ValidationMessageFor(model => model.Player11Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player11Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player11Phone)
            @Html.ValidationMessageFor(model => model.Player11Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player11City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player11City)
            @Html.ValidationMessageFor(model => model.Player11City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player12Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player12Name)
            @Html.ValidationMessageFor(model => model.Player12Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player12Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player12Phone)
            @Html.ValidationMessageFor(model => model.Player12Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player12City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player12City)
            @Html.ValidationMessageFor(model => model.Player12City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player13Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player13Name)
            @Html.ValidationMessageFor(model => model.Player13Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player13Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player13Phone)
            @Html.ValidationMessageFor(model => model.Player13Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player13City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player13City)
            @Html.ValidationMessageFor(model => model.Player13City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player14Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player14Name)
            @Html.ValidationMessageFor(model => model.Player14Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player14Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player14Phone)
            @Html.ValidationMessageFor(model => model.Player14Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player14City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player14City)
            @Html.ValidationMessageFor(model => model.Player14City)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player15Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player15Name)
            @Html.ValidationMessageFor(model => model.Player15Name)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player15Phone)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player15Phone)
            @Html.ValidationMessageFor(model => model.Player15Phone)
        </div>
          </div>
      <div class="floatleft">
        <div class="editor-label">
            @Html.LabelFor(model => model.Player15City)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Player15City)
            @Html.ValidationMessageFor(model => model.Player15City)
        </div></div>
      
         }
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
